package com.groupbuying.store.dao;

import com.groupbuying.store.domain.StoreCapitalVirtualAccountDetailDO;
import com.groupbuying.store.dto.forManage.StoreCapitalVirtualAccountDetailDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商户虚拟资金账号流水明细
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-31 10:58:32
 */
@Mapper
@Repository
public interface StoreCapitalVirtualAccountDetailDao {

	StoreCapitalVirtualAccountDetailDO get(String uuid);
	
	List<StoreCapitalVirtualAccountDetailDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreCapitalVirtualAccountDetailDO storeCapitalVirtualAccountDetail);
	
	int update(StoreCapitalVirtualAccountDetailDO storeCapitalVirtualAccountDetail);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

	/**
	 * 查询列表数据
	 * @param query
	 * @return
	 */
    List<StoreCapitalVirtualAccountDetailDto> getListByPage(Map<String,Object> query);

	/**
	 * 查询资金密码列表计数
	 */
    int countFinancialPwd(Map<String,Object> params);
	/**
	 * 查询资金密码列表
	 * @param query
	 * @return
	 */
	List<Map<String,Object>> getFinancialPwdList(Map<String,Object> query);

    //List<StoreCapitalVirtualAccountDetailDto> getStoreFlowListByStoreUuid(Map<String,Object> map);
	List<StoreCapitalVirtualAccountDetailDO> getStoreFlowListByStoreUuid(Map<String,Object> map);
	int countForFlow(Map<String, Object> map);

	/**
	 * 根据时间段查找流水记录
	 * @param params
	 * @return
	 */
    List<StoreCapitalVirtualAccountDetailDO> queryListByTime(Map<String, Object> params);
}
